package com.zhuangwei;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author LeviCoder
 * @create 2019-01-28 18:03
 */
@Controller
@SpringBootApplication
public class SpringBootFreemarker
{
    public static void main(String[] args)
    {
        SpringApplication.run(SpringBootFreemarker.class,args);
    }

    @GetMapping({"","/"})
    public ModelAndView home(){
        return new ModelAndView("index");
    }
}
